package com.coderlin1.mapper;

import com.coderlin1.entities.Worker;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <Description> <br>
 *
 * @author Coder_Lin<br>
 * @version 1.0<br>
 * @taskId: <br>
 * @createDate 2021/08/03 14:22 <br>
 * @see com.coderlin1.mapper <br>
 */
public interface WorkerMapper {

    /**
     * 从数据库中查询出所有的worker信息
     * @return
     */
    List<Worker> listWorker();

    /**
     * 添加工人
     * @param worker
     * @return
     */
    Integer addWorker(@Param("worker") Worker worker);
}
